package webSpider.webMagic;

import java.util.LinkedList;
import java.util.List;


import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.processor.PageProcessor;
import us.codecraft.webmagic.selector.Selectable;

public class NuomiPageProcessor2 implements PageProcessor {

    private Site site = Site.me().setRetryTimes(3);
    @Override
    public void process(Page page) {
//    	  取出每部电影的网页
		 String title = page.getHtml().xpath("/html/body/div[1]/div[2]/div[2]/a[1]").toString();
		 System.out.println(title);
    }

    @Override
    public Site getSite() {
        return site;
    }
  
}

